package cn.com.db.dao;

import cn.com.db.model.Parts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface PartsDao {

    void createParts(Parts parts);

    Parts getPartsById(String id);

    List<Parts> getParts(@Param("parent")String parent);

    Integer countParts(@Param("parent")String parent);

    void update(Parts parts);

}
